<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>php.ini 核心配置选项说明</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ini.sections.html">php.ini 配置段列表</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="extensions.html">扩展库列表／归类</a></div>
 <div class="up"><a href="ini.html">php.ini 配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="ini.core" class="section">
  <h2 class="title"><var class="filename">php.ini</var> 核心配置选项说明</h2>
  <p class="para">
   该列表只包含核心的 <var class="filename">php.ini</var>
   配置选项。扩展的配置选项在各个扩展的文档页面分别被描述。有关 session 的选项可以在
   <a href="ref.session.html" class="link">sessions 页面</a>找到。
  </p>
  
  <div class="section" id="ini.sect.httpd-options">
   <h2 class="title">Httpd 选项</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Httpd 选项</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>async_send</td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_ALL</td>
        <td class="empty">&nbsp;</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   <p class="para">
   </p>
  </div>
  
  <div class="section" id="ini.sect.language-options">
   <h2 class="title">语言选项</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>语言和杂类配置选项</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.short-open-tag" class="link">short_open_tag</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>在 PHP 4.0.0 时是 PHP_INI_ALL。 在 PHP &lt; 5.3.0 时是 PHP_INI_PERDIR。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.asp-tags" class="link">asp_tags</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP 4.0.0 时是 PHP_INI_ALL。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.precision" class="link">precision</a></td>
        <td>&quot;14&quot;</td>
        <td>PHP_INI_ALL</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.serialize-precision" class="link">serialize_precision</a></td>
        <td>&quot;17&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 4.3.2 起可用。在 PHP 5.3.5以前，默认值为 100 </td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.y2k-compliance" class="link">y2k_compliance</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>在 PHP 5.4.0 中移除该选项。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.allow-call-time-pass-reference" class="link">allow_call_time_pass_reference</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP 4.0.0 时是 PHP_INI_ALL。 在 PHP 5.4.0 中移除该选项。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.disable-functions" class="link">disable_functions</a></td>
        <td>&quot;&quot;</td>
        <td><var class="filename">php.ini</var> only</td>
        <td>从 PHP 4.0.1 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.disable-classes" class="link">disable_classes</a></td>
        <td>&quot;&quot;</td>
        <td><var class="filename">php.ini</var> only</td>
        <td>从 PHP 4.3.2 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.exit-on-timeout" class="link">exit_on_timeout</a></td>
        <td>&quot;&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 5.3.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.expose-php" class="link">expose_php</a></td>
        <td>&quot;1&quot;</td>
        <td><var class="filename">php.ini</var> only</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend.multibyte" class="link">zend.multibyte</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 5.4.0 起可用</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend.script-encoding" class="link">zend.script_encoding</a></td>
        <td>NULL</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 5.4.0 起可用</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend.signal-check" class="link">zend.signal_check</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 5.4.0 起可用</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend.ze1-compatibility-mode" class="link">zend.ze1_compatibility_mode</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 5.0.0起可用。 在 PHP 5.3.0 中移除该选项 </td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.detect-unicode" class="link">detect_unicode</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 5.1.0起可用。 本过时特性<em class="emphasis">将</em>肯定会在未来被<em class="emphasis">移除</em>。 </td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.short-open-tag">
       <em><code class="parameter">short_open_tag</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
         决定是否允许使用 PHP 代码开始标志的缩写形式（<strong class="userinput"><code>&lt;?
         ?&gt;</code></strong>）。如果要和 XML 结合使用
         PHP，可以禁用此选项以便于嵌入使用
         <strong class="userinput"><code>&lt;?xml ?&gt;</code></strong>。否则还可以通过
         PHP 来输出，例如：<strong class="userinput"><code>&lt;?php echo &#039;&lt;?xml
         version=&quot;1.0&quot;&#039;; ?&gt;</code></strong>。如果禁用了，必须使用
         PHP 代码开始标志的完整形式（<strong class="userinput"><code>&lt;?php
         ?&gt;</code></strong>）。
       </p>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
          本指令也会影响到缩写形式
          <strong class="userinput"><code>&lt;?=</code></strong>，它和
          <strong class="userinput"><code>&lt;? echo</code></strong> 等价。使用此缩写需要
          <code class="systemitem systemitem">short_open_tag</code>
          的值为 On。
         从 PHP 5.4.0 起， <strong class="userinput"><code>&lt;?=</code></strong> 总是可用的。
        </p>
       </p></blockquote>
      </dd>

     
     
     
      <dt id="ini.asp-tags">
       <em><code class="parameter">asp_tags</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <span class="simpara">
         除了通常的
         &lt;?php ?&gt;
         标志之外还允许使用
         ASP 风格的标志 &lt;% %&gt;。这也包括了输出变量值的缩写
         &lt;%= $value %&gt;。更多信息见<a href="language.basic-syntax.phpmode.html" class="link">从 HTML 中分离</a>一节。
       </span>
      </dd>

     
     
     
      <dt id="ini.precision">
       <em><code class="parameter">precision</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <span class="simpara">
        浮点数中显示有效数字的位数。
       </span>
      </dd>

     

     
      <dt id="ini.serialize-precision">
       <em><code class="parameter">serialize_precision</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <span class="simpara">
        The number of significant digits stored while serializing floating point numbers.
       </span>
      </dd>

     
     
     
      <dt id="ini.y2k-compliance">
       <em><code class="parameter">y2k_compliance</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <span class="simpara">
        强制 2000 年兼容（在不兼容的浏览器中会出问题）。
       </span>
      </dd>

     
     
     
     
      <dt id="ini.allow-call-time-pass-reference">
       <em><code class="parameter">allow_call_time_pass_reference</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

        <p class="para">
         在函数调用时参数被按照引用传递时是否发出警告。此方法已不被赞成并在
         PHP/Zend 未来的版本中很可能不再支持。鼓励使用的方法是在函数定义中指定哪些参数应该用引用传递。鼓励大家尝试关闭此选项并确保脚本能够正常运行，以确保该脚本也能在未来的版本中运行（每次使用此特性都会收到一条警告）。
        </p>
        <p class="para">
         在函数调用时通过引用传递参数是不推荐的，因为它影响到了代码的整洁。如果函数的参数没有声明作为引用传递，函数可以通过未写入文档的方法修改其参数。要避免其副作用，最好仅在函数声明时指定那个参数需要通过引用传递。
        </p>
        <p class="para">
         参见<a href="language.references.html" class="link">引用的解释</a>。
        </p>
       <p class="para">
        <table class="doctable table">
         <caption><strong>Changelog for <em>allow_call_time_pass_reference</em></strong></caption>
         
          <thead>
           <tr>
            <th>版本</th>
            <th>说明</th>
           </tr>

          </thead>

          <tbody class="tbody">
           <tr>
            <td>5.4.0</td>
            <td>
             从 PHP 中移除。
            </td>
           </tr>

           <tr>
            <td>5.3.0</td>
            <td>
             Emits an <strong><code>E_DEPRECATED</code></strong> level error.
            </td>
           </tr>

           <tr>
            <td>5.0.0</td>
            <td>
             Deprecated, and generates an <strong><code>E_COMPILE_WARNING</code></strong> level error.
            </td>
           </tr>

          </tbody>
         
        </table>

       </p>
      </dd>

     
     
     
      <dt id="ini.expose-php">
       <em><code class="parameter">expose_php</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        决定是否暴露 PHP 被安装在服务器上（例如在 Web
         服务器的信息头中加上其签名：X-Powered-By: PHP/5.3.7)。 The PHP logo
        guids are also exposed, thus appending them to the URL of a PHP enabled site
        will display the appropriate logo 
        (e.g., <a href="http://www.php.net/?=PHPE9568F34-D428-11d2-A769-00AA001ACF42" class="link external">&raquo;&nbsp;http://www.php.net/?=PHPE9568F34-D428-11d2-A769-00AA001ACF42</a>).
        This also affects the output of <span class="function"><a href="function.phpinfo.html" class="function">phpinfo()</a></span>, as when disabled, the PHP logo
        and credits information will not be displayed.
       </p>
       <p class="para">
        See also <span class="function"><a href="function.php-logo-guid.html" class="function">php_logo_guid()</a></span> and <span class="function"><a href="function.phpcredits.html" class="function">phpcredits()</a></span>.
       </p>
      </dd>

     
     
    
     <dt id="ini.disable-functions">
      <em><code class="parameter">disable_functions</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <span class="simpara">
       本指令允许你基于<a href="security.html" class="link">安全</a>原因禁止某些函数。接受逗号分隔的函数名列表作为参数。
       disable_functions 不受<a href="ini.sect.safe-mode.html#ini.safe-mode" class="link">安全模式</a>的影响。
      </span>
      <span class="simpara">
       本指令只能设置在 <var class="filename">php.ini</var> 中。例如不能将其设置在 <var class="filename">httpd.conf</var>。
      </span>
     </dd>

    
     
    
     <dt id="ini.disable-classes">
      <em><code class="parameter">disable_classes</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <span class="simpara">
       本指令可以使你出于<a href="security.html" class="link">安全</a>的理由禁用某些类。用逗号分隔类名。disable_classes
       不受<a href="ini.sect.safe-mode.html#ini.safe-mode" class="link">安全模式</a>的影响。
      </span>
      <span class="simpara">
       本指令只能设置在 <var class="filename">php.ini</var> 中。例如不能将其设置在 <var class="filename">httpd.conf</var>。
      </span>
      <blockquote class="note"><p><strong class="note">Note</strong>: 
       <strong>可用性说明</strong><br />
       <span class="simpara">
        本指令自 PHP 4.3.2 起可用。
       </span>
      </p></blockquote>
     </dd>

    
     
     
      <dt id="ini.zend.ze1-compatibility-mode">
       <em><code class="parameter">zend.ze1_compatibility_mode</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Enable compatibility mode with Zend Engine 1 (PHP 4).  It affects
        the cloning, casting (objects with no properties cast to <strong><code>FALSE</code></strong> or 0), and <a href="language.oop5.object-comparison.html" class="link">comparing of objects</a>.
        In this mode, objects are passed by value instead of reference by
        default.
       </p>
       <p class="para">
        See also the section titled
        <a href="migration5.html" class="link">Migrating from PHP 4 to PHP 5</a>.
       </p>
       <div class="warning"><strong class="warning">Warning</strong>
        <p class="simpara">This feature has been <em class="emphasis">DEPRECATED</em> and <em class="emphasis">REMOVED</em>
         as of PHP 5.3.0.
        </p>
       </div>
       
      </dd>

     
     
     
      <dt id="ini.zend.multibyte">
       <em><code class="parameter">zend.multibyte</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Enables parsing of source files in multibyte encodings.
       </p>
      </dd>

     
     
     
      <dt id="ini.zend.script-encoding">
       <em><code class="parameter">zend.script_encoding</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        This value will be used unless a
        <a href="control-structures.declare.html#control-structures.declare.encoding" class="link">declare(encoding=...)</a>
        directive appears at the top of the script.
       </p>
      </dd>

     
     
     
      <dt id="ini.zend.signal-check">
       <em><code class="parameter">zend.signal_check</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        To check for replaced signal handlers on shutdown.
       </p>
      </dd>

     
     
     
      <dt id="ini.detect-unicode">
       <em><code class="parameter">detect_unicode</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Check for BOM (Byte Order Mark) and see if the file contains valid
        multibyte characters.
        This detection is performed before processing of
        <span class="function"><a href="function.halt-compiler.html" class="function">__halt_compiler()</a></span>.
        Available only in Zend Multibyte mode.
       </p>
      </dd>

     

     
      <dt id="ini.exit-on-timeout">
       <em><code class="parameter">exit_on_timeout</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        This is an Apache1 mod_php-only directive that forces an Apache child to exit if a PHP execution timeout occurred.
        Such a timeout causes an internal longjmp() call in Apache1 which can leave some extensions in an inconsistent
        state. By terminating the process any outstanding locks or memory will be cleaned up.
       </p>
      </dd>

     
     
    </dl>

   </p>
  </div>
  
  <div class="section" id="ini.sect.resource-limits">
   <h2 class="title">Resource Limits</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Resource Limits</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.memory-limit" class="link">memory_limit</a></td>
        <td>&quot;128M&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>&quot;8M&quot; before PHP 5.2.0, &quot;16M&quot; in PHP 5.2.0</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.memory-limit">
       <em><code class="parameter">memory_limit</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        This sets the maximum amount of memory in bytes that a script
        is allowed to allocate.  This helps prevent poorly written
        scripts for eating up all available memory on a server. Note that
        to have no memory limit, set this directive to <em>-1</em>.
       </p>
       <p class="para">
        Prior to PHP 5.2.1, in order to use this directive it had to
        be enabled at compile time by using
        <strong class="option configure">--enable-memory-limit</strong>
 in the
        configure line. This compile-time flag was also required to define
        the functions <span class="function"><a href="function.memory-get-usage.html" class="function">memory_get_usage()</a></span> and
        <span class="function"><a href="function.memory-get-peak-usage.html" class="function">memory_get_peak_usage()</a></span> prior to 5.2.1.
       </p>
       
       <span class="simpara">当使用  <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
时, 其值以字节来衡量。还可以使用在<a href="faq.using.html#faq.using.shorthandbytes" class="link">FAQ</a>中描述的速记符。</span>
       
      </dd>

     
    </dl>

   </p>
   <p class="para">
    See also: <a href="info.configuration.html#ini.max-execution-time" class="link">max_execution_time</a>.
   </p>
  </div>
  
  <div class="section" id="ini.sect.performance">
   <h2 class="title">Performance Tuning</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Performance Tuning</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.realpath-cache-size" class="link">realpath_cache_size</a></td>
        <td>&quot;16K&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 5.1.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.realpath-cache-ttl" class="link">realpath_cache_ttl</a></td>
        <td>&quot;120&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 5.1.0 起可用。</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   <p class="para">这是配置指令的简短说明。</p>
   <p class="para">
    <dl>

     
      <dt id="ini.realpath-cache-size">
       <em><code class="parameter">realpath_cache_size</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        Determines the size of the realpath cache to be used by PHP. This
        value should be increased on systems where PHP opens many files, to
        reflect the quantity of the file operations performed.
       </p>
      </dd>

     
     
      <dt id="ini.realpath-cache-ttl">
       <em><code class="parameter">realpath_cache_ttl</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        Duration of time (in seconds) for which to cache realpath information
        for a given file or directory. For systems with rarely changing files,
        consider increasing the value.
       </p>
      </dd>

     
    </dl>

   </p>
  </div>
  
  <div class="section" id="ini.sect.data-handling">
   <h2 class="title">Data Handling</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Data Handling Configuration Options</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.track-vars" class="link">track_vars</a></td>
        <td>&quot;On&quot;</td>
        <td>PHP_INI_??</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.arg-separator.output" class="link">arg_separator.output</a></td>
        <td>&quot;&amp;&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 4.0.5 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.arg-separator.input" class="link">arg_separator.input</a></td>
        <td>&quot;&amp;&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>从 PHP 4.0.5 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.variables-order" class="link">variables_order</a></td>
        <td>&quot;EGPCS&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 5.0.5 时是 PHP_INI_ALL。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.request-order" class="link">request_order</a></td>
        <td>&quot;&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>从 PHP 5.3.0 起可用</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.auto-globals-jit" class="link">auto_globals_jit</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>从 PHP 5.0.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.register-globals" class="link">register_globals</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。 在 PHP 5.4.0 中移除该选项。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.register-argc-argv" class="link">register_argc_argv</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.register-long-arrays" class="link">register_long_arrays</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>从 PHP 5.0.0. Deprecated in PHP 5.3.0. Removed in PHP 5.4.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.post-max-size" class="link">post_max_size</a></td>
        <td>&quot;8M&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_SYSTEM。 从 PHP 4.0.3 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.gpc-order" class="link">gpc_order</a></td>
        <td>&quot;GPC&quot;</td>
        <td>PHP_INI_ALL</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.auto-prepend-file" class="link">auto_prepend_file</a></td>
        <td>NULL</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.auto-append-file" class="link">auto_append_file</a></td>
        <td>NULL</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.default-mimetype" class="link">default_mimetype</a></td>
        <td>&quot;text/html&quot;</td>
        <td>PHP_INI_ALL</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.default-charset" class="link">default_charset</a></td>
        <td>&quot;&quot;</td>
        <td>PHP_INI_ALL</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.always-populate-raw-post-data" class="link">always_populate_raw_post_data</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。 从 PHP 4.1.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.allow-webdav-methods" class="link">allow_webdav_methods</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td class="empty">&nbsp;</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.track-vars">
       <em><code class="parameter">track_vars</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        If enabled, then Environment, GET, POST, Cookie, and Server
        variables can be found in the global associative arrays
        <var class="varname"><var class="varname"><a href="reserved.variables.environment.html" class="classname">$_ENV</a></var></var>,
        <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var></var>,
        <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var></var>,
        <var class="varname"><var class="varname"><a href="reserved.variables.cookies.html" class="classname">$_COOKIE</a></var></var>, and
        <var class="varname"><var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var></var>.
       </p>
       <p class="para">
        Note that as of PHP 4.0.3, <code class="systemitem systemitem">track_vars</code> is always turned on.
       </p>
      </dd>

     
     
     
      <dt id="ini.arg-separator.output">
       <em><code class="parameter">arg_separator.output</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        The separator used in PHP generated URLs to separate arguments.
       </p>
      </dd>

     
     
     
      <dt id="ini.arg-separator.input">
       <em><code class="parameter">arg_separator.input</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        List of separator(s) used by PHP to parse input URLs into variables.
       </p>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
         Every character in this directive is considered as separator!
        </p>
       </p></blockquote>
      </dd>

     
     
     
      <dt id="ini.variables-order">
       <em><code class="parameter">variables_order</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Sets the order of the EGPCS (<em>E</em>nvironment,
        <em>G</em>et, <em>P</em>ost,
        <em>C</em>ookie, and <em>S</em>erver) variable
        parsing. For example, if variables_order
        is set to <em>&quot;SP&quot;</em> then PHP will create the
        <a href="language.variables.predefined.html" class="link">superglobals</a> <var class="varname"><var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var></var> and
        <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var></var>, but not create
        <var class="varname"><var class="varname"><a href="reserved.variables.environment.html" class="classname">$_ENV</a></var></var>, <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var></var>, and
        <var class="varname"><var class="varname"><a href="reserved.variables.cookies.html" class="classname">$_COOKIE</a></var></var>.  Setting to &quot;&quot; means no
        <a href="language.variables.predefined.html" class="link">superglobals</a> will be set.
       </p>
       <p class="para">
        If the deprecated
        <a href="ini.core.html#ini.register-globals" class="link">register_globals</a>
        directive is on, then variables_order also
        configures the order the <em>ENV</em>,
        <em>GET</em>, <em>POST</em>,
        <em>COOKIE</em> and <em>SERVER</em> variables
        are populated in global scope. So for example if variables_order
        is set to <em>&quot;EGPCS&quot;</em>, register_globals is enabled,
        and both <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET['action']</a></var></var> and
        <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST['action']</a></var></var> are set, then
        <var class="varname"><var class="varname">$action</var></var> will contain the value of
        <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST['action']</a></var></var> as <em>P</em> comes
        after <em>G</em> in our example directive value.
       </p>
       <div class="warning"><strong class="warning">Warning</strong>
        <p class="para">
         In both the CGI and FastCGI SAPIs,
         <var class="varname"><var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var></var> is
         also populated by values from the environment; <em>S</em>
         is always equivalent to <em>ES</em> regardless of the
         placement of <em>E</em> elsewhere in this directive.
        </p>
       </div>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
         The content and order of
         <var class="varname"><var class="varname"><a href="reserved.variables.request.html" class="classname">$_REQUEST</a></var></var> is also
         affected by this directive.
        </p>
       </p></blockquote>
      </dd>

     
     
     
      <dt id="ini.request-order">
       <em><code class="parameter">request_order</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        This directive describes the order in which PHP registers GET, POST
        and Cookie variables into the _REQUEST array. Registration is done
        from left to right, newer values override older values.
       </p>
       <p class="para">
        If this directive is not set, <a href="ini.core.html#ini.variables-order" class="link">variables_order</a> is used for
        <var class="varname"><var class="varname"><a href="reserved.variables.request.html" class="classname">$_REQUEST</a></var></var> contents.
       </p>
       <p class="para">
        Note that the default distribution <var class="filename">php.ini</var> files does not contain 
        the <em>&#039;C&#039;</em> for cookies, due to security concerns.
       </p>
      </dd>

     
     
     
      <dt id="ini.auto-globals-jit">
       <em><code class="parameter">auto_globals_jit</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        When enabled, the SERVER and ENV variables are created when they&#039;re
        first used (Just In Time) instead of when the script starts. If these
        variables are not used within a script, having this directive on will
        result in a performance gain.
       </p>
       <p class="para">
        The PHP directives
        <a href="ini.core.html#ini.register-globals" class="link">register_globals</a>,
        <a href="ini.core.html#ini.register-long-arrays" class="link">register_long_arrays</a>,
        and <a href="ini.core.html#ini.register-argc-argv" class="link">register_argc_argv</a>
        must be disabled for this directive to have any affect. Since PHP
        5.1.3 it is not necessary to have <a href="ini.core.html#ini.register-argc-argv" class="link">register_argc_argv</a> disabled.
       </p>
       <div class="warning"><strong class="warning">Warning</strong>
        <p class="para">
         Usage of SERVER and ENV variables is checked during the compile time
         so using them through e.g. <a href="language.variables.variable.html" class="link">variable variables</a> will
         not cause their initialization.
        </p>
       </div>
      </dd>

     
     
     
      <dt id="ini.register-globals">
       <em><code class="parameter">register_globals</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Whether or not to register the EGPCS (Environment, GET,
        POST, Cookie, Server) variables as global variables.
       </p>
       <p class="para">
        As of <a href="http://www.php.net/releases/4_2_0.php" class="link external">&raquo;&nbsp;PHP 4.2.0</a>,
        this directive defaults to <em class="emphasis">off</em>.
       </p>
       <p class="para">
        Please read the security chapter on
        <a href="security.globals.html" class="link">Using register_globals</a>
        for related information.
       </p>
       <p class="para">
        Please note that <code class="systemitem systemitem">register_globals</code>
        cannot be set at runtime (<span class="function"><a href="function.ini-set.html" class="function">ini_set()</a></span>). Although, you can
        use <var class="filename">.htaccess</var> if your host allows it as described
        above. An example <var class="filename">.htaccess</var> entry:
        <strong class="userinput"><code>php_flag register_globals off</code></strong>.
       </p>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
         <code class="systemitem systemitem">register_globals</code> is affected
         by the <a href="ini.core.html#ini.variables-order" class="link">variables_order</a>
         directive.
        </p>
       </p></blockquote>
       <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本特性已自
PHP 5.3.0 起<em class="emphasis">废弃</em>并将自 PHP 5.4.0
起<em class="emphasis">移除</em>。</p></div>
      </dd>

     
     
     
      <dt id="ini.register-argc-argv">
       <em><code class="parameter">register_argc_argv</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <span class="simpara">
        Tells PHP whether to declare the argv &amp; argc variables
        (that would contain the GET information).
       </span>
       <span class="simpara">
        See also <a href="features.commandline.html" class="link">command line</a>.
       </span>
      </dd>

     
     
     
      <dt id="ini.register-long-arrays">
       <em><code class="parameter">register_long_arrays</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <span class="simpara">
        Tells PHP whether or not to register the deprecated long
        <var class="varname"><var class="varname">$HTTP_*_VARS</var></var> type
        <a href="language.variables.predefined.html" class="link">predefined
         variables</a>.  When On (default), long predefined PHP
        variables like <var class="varname"><var class="varname">$HTTP_GET_VARS</var></var> will be defined.
        If you&#039;re not using them, it&#039;s recommended to turn them off,
        for performance reasons.  Instead, use the superglobal arrays,
        like <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var></var>.
       </span>
       <span class="simpara">
        This directive became available in PHP 5.0.0.
       </span>
       <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本特性已自
PHP 5.3.0 起<em class="emphasis">废弃</em>并将自 PHP 5.4.0
起<em class="emphasis">移除</em>。</p></div>
      </dd>

     
     
     
      <dt id="ini.enable-post-data-reading">
       <em><code class="parameter">enable_post_data_reading</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <span class="simpara">
        Disabling this option causes <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var></var> and
        <var class="varname"><var class="varname"><a href="reserved.variables.files.html" class="classname">$_FILES</a></var></var> <em class="emphasis">not</em> to be populated.
        The only way to read postdata will then be through the
        <a href="wrappers.php.html" class="link">php://input</a> stream wrapper.
        This can be useful to proxy requests or to process
        the POST data in a memory efficient fashion.
       </span>
      </dd>

     

     
      <dt id="ini.post-max-size">
       <em><code class="parameter">post_max_size</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <span class="simpara">
        Sets max size of post data allowed. This setting also affects
        file upload. To upload large files, this value must be larger
        than <a href="ini.core.html#ini.upload-max-filesize" class="link">upload_max_filesize</a>.
       </span>
       <span class="simpara">
        If memory limit is enabled by your configure script, <a href="ini.core.html#ini.memory-limit" class="link">memory_limit</a> also affects
        file uploading. Generally speaking,
        <a href="ini.core.html#ini.memory-limit" class="link">memory_limit</a> should be
        larger than <em><code class="parameter">post_max_size</code></em>.
       </span>
       
       <span class="simpara">当使用  <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
时, 其值以字节来衡量。还可以使用在<a href="faq.using.html#faq.using.shorthandbytes" class="link">FAQ</a>中描述的速记符。</span>
       
       <span class="simpara">
        If the size of post data is greater than post_max_size, the
        <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var></var> and <var class="varname"><var class="varname"><a href="reserved.variables.files.html" class="classname">$_FILES</a></var></var>
        <a href="language.variables.superglobals.html" class="link">superglobals</a>
        are empty. This can be tracked in various ways, e.g. by passing the
        <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var></var> variable to the script processing the data,
        i.e. <em>&lt;form action=&quot;edit.php?processed=1&quot;&gt;</em>,
        and then checking if <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET['processed']</a></var></var> is set.
       </span>
       <p class="para">
        <blockquote class="note"><p><strong class="note">Note</strong>: 
         <p class="para">
          PHP allows shortcuts for bit values, including K (kilo), M (mega) 
          and G (giga). PHP will do the conversions automatically if you 
          use any of these. Be careful not to exceed the 32 bit signed integer 
          limit (if you&#039;re using 32bit versions) as it will cause your script 
          to fail.
         </p>
        </p></blockquote>
       </p>
       
      </dd>

     
     
     
      <dt id="ini.gpc-order">
       <em><code class="parameter">gpc_order</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Set the order of GET/POST/COOKIE variable parsing. The
        default setting of this directive is &quot;GPC&quot;.  Setting this to
        &quot;GP&quot;, for example, will cause PHP to completely ignore cookies
        and to overwrite any GET method variables with POST-method
        variables of the same name.
       </p>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
         This option is not available in PHP 4.
         Use <a href="ini.core.html#ini.variables-order" class="link">variables_order</a>
         instead.
        </p>
       </p></blockquote>
      </dd>

     
     
     
      <dt id="ini.auto-prepend-file">
       <em><code class="parameter">auto_prepend_file</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Specifies the name of a file that is automatically parsed
        before the main file.  The file is included as if it was
        called with the <span class="function"><a href="function.require.html" class="function">require</a></span> function, so
        <a href="ini.core.html#ini.include-path" class="link">include_path</a> is used.</p>
       <p class="para">
        The special value <em>none</em>
        disables auto-prepending.
       </p>
      </dd>

     
     
     
      <dt id="ini.auto-append-file">
       <em><code class="parameter">auto_append_file</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Specifies the name of a file that is automatically parsed
        after the main file.  The file is included as if it was
        called with the <span class="function"><a href="function.require.html" class="function">require</a></span> function, so
        <a href="ini.core.html#ini.include-path" class="link">include_path</a> is used.</p>
       <p class="para">
        The special value <em>none</em>
        disables auto-appending.
        <blockquote class="note"><p><strong class="note">Note</strong>: 
         <span class="simpara">
          If the script is terminated with <span class="function"><a href="function.exit.html" class="function">exit()</a></span>,
          auto-append will <em class="emphasis">not</em> occur.</span>
        </p></blockquote>
       </p>
      </dd>

     
     
     
      <dt id="ini.default-mimetype">
       <em><code class="parameter">default_mimetype</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
       </p>
      </dd>

     
     
     
      <dt id="ini.default-charset">
       <em><code class="parameter">default_charset</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        PHP always outputs a character encoding by default in
        the Content-type: header. To disable sending of the charset, simply
        set it to be empty.
       </p>
      </dd>

     
     
     
      <dt id="ini.always-populate-raw-post-data">
       <em><code class="parameter">always_populate_raw_post_data</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Always populate the <var class="varname"><var class="varname"><a href="reserved.variables.httprawpostdata.html" class="classname">$HTTP_RAW_POST_DATA</a></var></var> containing
        the raw POST data. Otherwise, the variable is populated only with
        unrecognized MIME type of the data. However, the preferred method for
        accessing the raw POST data is <a href="wrappers.php.html" class="link">php://input</a>.
        <var class="varname"><var class="varname"><a href="reserved.variables.httprawpostdata.html" class="classname">$HTTP_RAW_POST_DATA</a></var></var> is not available with
        <em>enctype=&quot;multipart/form-data&quot;</em>.
       </p>
      </dd>

     
     
     
      <dt id="ini.allow-webdav-methods">
       <em><code class="parameter">allow_webdav_methods</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Allow handling of WebDAV http requests within PHP scripts (eg.
        PROPFIND, PROPPATCH, MOVE, COPY, etc.).
        This directive does not exist as of PHP 4.3.2.
        If you want to get the post data of those requests, you have to
        set <a href="ini.core.html#ini.always-populate-raw-post-data" class="link">
        always_populate_raw_post_data</a> as well.
       </p>
      </dd>

     
    </dl>

   </p>
   <p class="para">
    See also: <a href="info.configuration.html#ini.magic-quotes-gpc" class="link">magic_quotes_gpc</a>,
    <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a>,
    and
    <a href="sybase.configuration.html#ini.magic-quotes-sybase" class="link">magic_quotes_sybase</a>.
   </p>
  </div>
  
  <div class="section" id="ini.sect.path-directory">
   <h2 class="title">Paths and Directories</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Paths and Directories Configuration Options</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.include-path" class="link">include_path</a></td>
        <td>&quot;.;/path/to/php/pear&quot;</td>
        <td>PHP_INI_ALL</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.open-basedir" class="link">open_basedir</a></td>
        <td>NULL</td>
        <td>PHP_INI_ALL</td>
        <td>PHP_INI_SYSTEM in PHP &lt; 5.3.0</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.doc-root" class="link">doc_root</a></td>
        <td>NULL</td>
        <td>PHP_INI_SYSTEM</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.user-dir" class="link">user_dir</a></td>
        <td>NULL</td>
        <td>PHP_INI_SYSTEM</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.extension-dir" class="link">extension_dir</a></td>
        <td>&quot;/path/to/php&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.extension" class="link">extension</a></td>
        <td>NULL</td>
        <td><var class="filename">php.ini</var> only</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend-extension" class="link">zend_extension</a></td>
        <td>NULL</td>
        <td><var class="filename">php.ini</var> only</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend-extension-debug" class="link">zend_extension_debug</a></td>
        <td>NULL</td>
        <td><var class="filename">php.ini</var> only</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend-extension-debug-ts" class="link">zend_extension_debug_ts</a></td>
        <td>NULL</td>
        <td><var class="filename">php.ini</var> only</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.zend-extension-ts" class="link">zend_extension_ts</a></td>
        <td>NULL</td>
        <td><var class="filename">php.ini</var> only</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.cgi.check-shebang-line" class="link">cgi.check_shebang_line</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 5.2.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.cgi.fix-pathinfo" class="link">cgi.fix_pathinfo</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 4.3.0. PHP_INI_ALL prior to PHP 5.2.1 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.cgi.force-redirect" class="link">cgi.force_redirect</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 4.2.0. PHP_INI_ALL prior to PHP 5.2.1 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.cgi.redirect-status-env" class="link">cgi.redirect_status_env</a></td>
        <td>NULL</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 4.2.0. PHP_INI_ALL prior to PHP 5.2.1 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.cgi.rfc2616-headers" class="link">cgi.rfc2616_headers</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 4.3.0 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.fastcgi.impersonate" class="link">fastcgi.impersonate</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 4.3.0. PHP_INI_ALL prior to PHP 5.2.1 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.fastcgi.logging" class="link">fastcgi.logging</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 4.3.0. PHP_INI_ALL prior to PHP 5.2.1 起可用。</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.include-path">
       <em><code class="parameter">include_path</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Specifies a list of directories where the
        <span class="function"><a href="function.require.html" class="function">require</a></span>, <span class="function"><a href="function.include.html" class="function">include</a></span>,
        <span class="function"><a href="function.fopen.html" class="function">fopen()</a></span>, <span class="function"><a href="function.file.html" class="function">file()</a></span>,
        <span class="function"><a href="function.readfile.html" class="function">readfile()</a></span> and <span class="function"><a href="function.file-get-contents.html" class="function">file_get_contents()</a></span>
        functions look for files.  The format is like the system&#039;s
        <span class="envar">PATH</span> environment variable: a list of directories
        separated with a colon in Unix or semicolon in Windows.
       </p>
       <p class="para">
        PHP considers each entry in the include path separately when looking for
        files to include. It will check the first path, and if it doesn&#039;t find
        it, check the next path, until it either locates the included file or
        returns with a 
        <a href="" class="link">warning</a>
        or an <a href="" class="link">error</a>. 
        You may modify or set your include path at runtime using
        <span class="function"><a href="function.set-include-path.html" class="function">set_include_path()</a></span>.
       </p>
       <p class="para">
        <div class="example" id="example-5507">
         <p><strong>Example #1 Unix include_path</strong></p>
         <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">include_path=&quot;.:/php/includes&quot;</pre>
</div>
         </div>

        </div>
       </p>
       <p class="para">
        <div class="example" id="example-5508">
         <p><strong>Example #2 Windows include_path</strong></p>
         <div class="example-contents">
<div class="php.inicode"><pre class="php.inicode">include_path=&quot;.;c:\php\includes&quot;</pre>
</div>
         </div>

        </div>
       </p>
       <p class="para">
        Using a <em>.</em> in the include path allows for
        relative includes as it means the current directory.  However,
        it is more efficient to explicitly use <em>include
        &#039;./file&#039;</em> than having PHP always check the current
        directory for every include.
       </p>
      </dd>

     
     
     
     <dt id="ini.open-basedir">
      <em><code class="parameter">open_basedir</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       将 PHP 所能打开的文件限制在指定的目录树，包括文件本身。本指令<em class="emphasis">不受</em>安全模式打开或者关闭的影响。
      </p>
      <p class="para">
       当一个脚本试图用例如 <span class="function"><a href="function.fopen.html" class="function">fopen()</a></span> 或者 <span class="function"><a href="function.gzopen.html" class="function">gzopen()</a></span>
       打开一个文件时，该文件的位置将被检查。当文件在指定的目录树之外时
       PHP 将拒绝打开它。所有的符号连接都会被解析，所以不可能通过符号连接来避开此限制。
      </p>
      <p class="para">
       特殊值 <strong><code>.</code></strong>
       指明脚本的工作目录将被作为基准目录。但这有些危险，因为脚本的工作目录可以轻易被
       <span class="function"><a href="function.chdir.html" class="function">chdir()</a></span> 而改变。
      </p>
      <p class="para">
       在 <var class="filename">httpd.conf</var> 文件中中，open_basedir
       可以像其它任何配置选项一样用“php_admin_value open_basedir none”的<a href="configuration.changes.html#configuration.changes.apache" class="link">方法</a>关闭（例如某些虚拟主机中）。
      </p>
      <p class="para">
       在 Windows 中，用分号分隔目录。在任何其它系统中用冒号分隔目录。作为
       Apache 模块时，父目录中的 open_basedir 路径自动被继承。
      </p>
      <p class="para">
       用 open_basedir 指定的限制实际上是前缀，不是目录名。也就是说“open_basedir
       = /dir/incl”也会允许访问“/dir/include”和“/dir/incls”，如果它们存在的话。如果要将访问限制在仅为指定的目录，用斜线结束路径名。例如：“open_basedir
       = /dir/incl/”。
      </p>
      <blockquote class="note"><p><strong class="note">Note</strong>: 
       <p class="para">
        支持多个目录是 3.0.7 加入的。
       </p>
      </p></blockquote>
      <p class="para">
       默认是允许打开所有文件。
      </p>
     </dd>

    
     
     
      <dt id="ini.doc-root">
       <em><code class="parameter">doc_root</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        PHP&#039;s &quot;root directory&quot; on the server. Only used if
        non-empty. If PHP is configured with <a href="ini.sect.safe-mode.html#ini.safe-mode" class="link">安全模式</a>, no files outside
        this directory are served.
        If PHP was not compiled with FORCE_REDIRECT, you <em class="emphasis">should
        </em> set doc_root if you are running PHP as a CGI under any web
        server (other than IIS). The alternative is to use the
        <a href="ini.core.html#ini.cgi.force-redirect" class="link">
         cgi.force_redirect</a> configuration below.
       </p>
      </dd>

     
     
     
      <dt id="ini.user-dir">
       <em><code class="parameter">user_dir</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        The base name of the directory used on a user&#039;s home directory for PHP
        files, for example <var class="filename">public_html
        </var>.
       </p>
      </dd>

     
     
     
      <dt id="ini.extension-dir">
       <em><code class="parameter">extension_dir</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        In what directory PHP should look for dynamically loadable
        extensions. See also: <a href="info.configuration.html#ini.enable-dl" class="link">enable_dl</a>,
        and <span class="function"><a href="function.dl.html" class="function">dl()</a></span>.
       </p>
      </dd>

     
     
     
      <dt id="ini.extension">
       <em><code class="parameter">extension</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Which dynamically loadable extensions to load when PHP starts up.
       </p>
      </dd>

     
     
     
      <dt id="ini.zend-extension">
       <em><code class="parameter">zend_extension</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Absolute path to dynamically loadable Zend extension (for example
        <a href="book.apd.html" class="link">APD</a>) to load when PHP starts up.
       </p>
      </dd>

     
     
     
      <dt id="ini.zend-extension-debug">
       <em><code class="parameter">zend_extension_debug</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Variant of <a href="ini.core.html#ini.zend-extension" class="link">zend_extension</a>
        for extensions compiled with debug info.
       </p>
      </dd>

     
     
     
      <dt id="ini.zend-extension-debug-ts">
       <em><code class="parameter">zend_extension_debug_ts</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Variant of <a href="ini.core.html#ini.zend-extension" class="link">zend_extension</a>
        for extensions compiled with debug info and thread safety.
       </p>
      </dd>

     
     
     
      <dt id="ini.zend-extension-ts">
       <em><code class="parameter">zend_extension_ts</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        Variant of <a href="ini.core.html#ini.zend-extension" class="link">zend_extension</a>
        for extensions compiled with thread safety.
       </p>
      </dd>

     
     
     
      <dt id="ini.cgi.check-shebang-line">
       <em><code class="parameter">cgi.check_shebang_line</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Controls whether <acronym title="Common Gateway Interface">CGI</acronym> PHP checks for line starting
        with <em>#!</em> (shebang) at the top of the running script.
        This line might be needed if the script support running both as
        stand-alone script and via PHP <acronym title="Common Gateway Interface">CGI</acronym>. PHP in
        <acronym title="Common Gateway Interface">CGI</acronym> mode skips this line and ignores its content if
        this directive is turned on.
       </p>
      </dd>

     
     
     
      <dt id="ini.cgi.fix-pathinfo">
       <em><code class="parameter">cgi.fix_pathinfo</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Provides <em class="emphasis">real</em> <em>PATH_INFO</em>/
        <em>PATH_TRANSLATED</em> support for <acronym title="Common Gateway Interface">CGI</acronym>.
        PHP&#039;s previous behaviour was to set <em>PATH_TRANSLATED</em>
        to <em>SCRIPT_FILENAME</em>, and to not grok what <em>
        PATH_INFO</em> is. For more information on
        <em>PATH_INFO</em>, see the <acronym title="Common Gateway Interface">CGI</acronym> specs.
        Setting this to <em>1</em> will cause PHP
        <acronym title="Common Gateway Interface">CGI</acronym> to fix its paths to conform to the spec. A
        setting of zero causes PHP to behave as before. It is turned on by
        default. You should fix your scripts to use
        <em>SCRIPT_FILENAME</em> rather than
        <em>PATH_TRANSLATED</em>.
       </p>
      </dd>

     
     
     
      <dt id="ini.cgi.force-redirect">
       <em><code class="parameter">cgi.force_redirect</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        cgi.force_redirect is necessary to provide security running PHP as a
        <acronym title="Common Gateway Interface">CGI</acronym> under most web servers. Left undefined, PHP
        turns this on by default. You can turn it off <em class="emphasis">at your own
        risk</em>.
       </p>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
         Windows Users: When using IIS this option <em class="emphasis">must</em>
         be turned off. For OmniHTTPD or Xitami the same applies.
        </p>
       </p></blockquote>
      </dd>

     
     
     
      <dt id="ini.cgi.redirect-status-env">
       <em><code class="parameter">cgi.redirect_status_env</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        If cgi.force_redirect is turned on, and you are not running under
        Apache or Netscape (iPlanet) web servers, you <em class="emphasis">may</em>
        need to set an environment variable name that PHP will look for to
        know it is OK to continue execution.
       </p>
       <blockquote class="note"><p><strong class="note">Note</strong>: 
        <p class="para">
         Setting this variable <em class="emphasis">may</em> cause security issues,
         <em class="emphasis">know what you are doing first</em>.
        </p>
       </p></blockquote>
      </dd>

     
     
     
      <dt id="ini.cgi.rfc2616-headers">
       <em><code class="parameter">cgi.rfc2616_headers</code></em>
       <span class="type"><a href="language.types.integer.html" class="type int">int</a></span>
      </dt>

      <dd>

       <p class="para">
        Tells PHP what type of headers to use when sending HTTP response
        code. If it&#039;s set 0, PHP sends a Status: header that is supported
        by Apache and other web servers. When this option is set to 1, PHP
        will send <a href="http://www.faqs.org/rfcs/rfc2616" class="link external">&raquo;&nbsp;RFC 2616</a> compliant
        headers.  Leave it set to 0 unless you know what you&#039;re doing.
       </p>
      </dd>

     
     
     
      <dt id="ini.fastcgi.impersonate">
       <em><code class="parameter">fastcgi.impersonate</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
        security tokens of the calling client. This allows IIS to define the
        security context that the request runs under. mod_fastcgi under Apache
        does not currently support this feature (03/17/2002)
        Set to 1 if running under IIS. Default is zero.
       </p>
      </dd>

     
     
     
      <dt id="ini.fastcgi.logging">
       <em><code class="parameter">fastcgi.logging</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        Turns on SAPI logging when using FastCGI. Default is 
        to enable logging.
       </p>
      </dd>

     
     
    </dl>

   </p>
  </div>
  
  <div class="section" id="ini.sect.file-uploads">
   <h2 class="title">File Uploads</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>File Uploads Configuration Options</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.file-uploads" class="link">file_uploads</a></td>
        <td>&quot;1&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。 从 PHP 4.0.3 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.upload-tmp-dir" class="link">upload_tmp_dir</a></td>
        <td>NULL</td>
        <td>PHP_INI_SYSTEM</td>
        <td class="empty">&nbsp;</td>
       </tr>

       <tr>
        <td><a href="info.configuration.html#ini.max-input-nesting-level" class="link">max_input_nesting_level</a></td>
        <td>64</td>
        <td>PHP_INI_PERDIR</td>
        <td>从 PHP 5.3.9 起可用。</td>
       </tr>

       <tr>
        <td><a href="info.configuration.html#ini.max-input-vars" class="link">max_input_vars</a></td>
        <td>1000</td>
        <td>PHP_INI_PERDIR</td>
        <td>从 PHP 5.3.9 起可用。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.upload-max-filesize" class="link">upload_max_filesize</a></td>
        <td>&quot;2M&quot;</td>
        <td>PHP_INI_PERDIR</td>
        <td>在 PHP &lt;= 4.2.3 时是 PHP_INI_ALL。</td>
       </tr>

       <tr>
        <td><a href="ini.core.html#ini.max-file-uploads" class="link">max_file_uploads</a></td>
        <td>20</td>
        <td>PHP_INI_SYSTEM</td>
        <td>从 PHP 5.2.12 起可用。</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.file-uploads">
       <em><code class="parameter">file_uploads</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
       or <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        Whether or not to allow HTTP
        <a href="features.file-upload.html" class="link">file uploads</a>. See also the
        <a href="ini.core.html#ini.upload-max-filesize" class="link">upload_max_filesize</a>,
        <a href="ini.core.html#ini.upload-tmp-dir" class="link">upload_tmp_dir</a>, and
        <a href="ini.core.html#ini.post-max-size" class="link">post_max_size</a> directives.
       </p>
       
       <span class="simpara">当使用  <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
时, 其值以字节来衡量。还可以使用在<a href="faq.using.html#faq.using.shorthandbytes" class="link">FAQ</a>中描述的速记符。</span>
       
      </dd>

     
     
     
      <dt id="ini.upload-tmp-dir">
       <em><code class="parameter">upload_tmp_dir</code></em>
       <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
      </dt>

      <dd>

       <p class="para">
        The temporary directory used for storing files when doing
        file upload. Must be writable by whatever user PHP
        is running as. If not specified PHP will use the system&#039;s default.
       </p>
       <p class="para">
        If the directory specified here is not writable, PHP falls back to 
        the system default temporary directory. If 
        <a href="ini.core.html#ini.open-basedir" class="link">open_basedir</a> is on, then 
        the system default directory must be allowed for an upload to 
        succeed.
       </p>
      </dd>

     
     
     
      <dt id="ini.upload-max-filesize">
       <em><code class="parameter">upload_max_filesize</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        The maximum size of an uploaded file.
       </p>
       
       <span class="simpara">当使用  <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
时, 其值以字节来衡量。还可以使用在<a href="faq.using.html#faq.using.shorthandbytes" class="link">FAQ</a>中描述的速记符。</span>
       
      </dd>

     
     
     
      <dt id="ini.max-file-uploads">
       <em><code class="parameter">max_file_uploads</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        The maximum number of files allowed to be uploaded simultaneously.
        Starting with PHP 5.3.4, upload fields left blank on submission do not
        count towards this limit.
       </p>
      </dd>

     
    </dl>

   </p>
  </div>
  
  <div class="section" id="ini.sect.sql-general">
   <h2 class="title">General SQL</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>General SQL Configuration Options</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.sql.safe-mode" class="link">sql.safe_mode</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_SYSTEM</td>
        <td class="empty">&nbsp;</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.sql.safe-mode">
       <em><code class="parameter">sql.safe_mode</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        If turned on, database connect functions that specify default values
        will use those values in place of supplied arguments. For default
        values see connect function documentation for the relevant database.
       </p>
      </dd>

     
    </dl>

   </p>
  </div>
  
  <div class="section" id="ini.sect.windows">
   <h2 class="title">Windows Specific</h2>
   <p class="para">
    <table class="doctable table">
     <caption><strong>Windows Specific Configuration Options</strong></caption>
     
      <thead>
       <tr>
        <th>名字</th>
        <th>默认</th>
        <th>可修改范围</th>
        <th>更新日志</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td><a href="ini.core.html#ini.windows-show-crt-warning" class="link">windows_show_crt_warning</a></td>
        <td>&quot;0&quot;</td>
        <td>PHP_INI_ALL</td>
        <td>从 PHP 5.4.0 起可用。</td>
       </tr>

      </tbody>
     
    </table>

   </p>
   
   <p class="para">这是配置指令的简短说明。</p>
   
   <p class="para">
    <dl>

     
      <dt id="ini.windows-show-crt-warning">
       <em><code class="parameter">windows_show_crt_warning</code></em>
       <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
      </dt>

      <dd>

       <p class="para">
        This directive shows the Windows CRT warnings when enabled. These
        warnings were displayed by default until PHP 5.4.0.
       </p>
      </dd>

     
    </dl>

   </p>
  </div>
  
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ini.sections.html">php.ini 配置段列表</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="extensions.html">扩展库列表／归类</a></div>
 <div class="up"><a href="ini.html">php.ini 配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
